package cn.exrick.xboot.modules.Equipments.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author ZhangWei
 */
@Data
@Entity
@Table(name = "t_equipments")
@TableName("t_equipments")
@ApiModel(value = "设备信息")
public class Equipments extends XbootBaseEntity {

     /*
    非数据库字段需要标注
    @Transient
    @TableField(exist=false)
    */

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;


    @ApiModelProperty(value = "设备类型")
    private String equipmentType;

    @ApiModelProperty(value = "经度")
    private String lon;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "备注")
    private String bak;

    @ApiModelProperty(value = "设备可访问地址")
    private String address;

    @ApiModelProperty(value = "故障状态")
    private String fault;

    @Transient
    @TableField(exist = false)
    @ApiModelProperty(value = "河流名称")
    private String riverName;

    @ApiModelProperty(value = "所属河流")
    private String riverId;
}